<template>
  <div class="mysearch">
    <el-form ref="form" :model="form" label-width="80px">
      <!-- 第一行 -->
      <el-row>
        <el-col :span="6">
          <el-form-item label="学科" size="small">
            <el-select v-model="value" placeholder="请选择">
              <el-option
                v-for="item in form.subject"
                :key="item"
                :label="item"
                :value="item"
              >
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="二级目录" size="small">
            <el-select v-model="value" placeholder="请选择">
              <el-option
                v-for="item in form.xx"
                :key="item"
                :label="item"
                :value="item"
              >
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="标签" size="small">
            <el-select v-model="value" placeholder="请选择">
              <el-option
                v-for="item in form.xx"
                :key="item"
                :label="item"
                :value="item"
              >
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="关键字" size="small">
            <el-select v-model="value" placeholder="请选择">
              <el-option
                v-for="item in form.xx"
                :key="item"
                :label="item"
                :value="item"
              >
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <!-- 第二行 -->
        <el-col :span="6">
          <el-form-item label="试题类型" size="small">
            <el-select v-model="value" placeholder="请选择">
              <el-option
                v-for="item in form.xx"
                :key="item"
                :label="item"
                :value="item"
              >
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="难度" size="small">
            <el-select v-model="value" placeholder="请选择">
              <el-option
                v-for="item in form.subject"
                :key="item"
                :label="item"
                :value="item"
              >
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="方向" size="small">
            <el-select v-model="value" placeholder="请选择">
              <el-option
                v-for="item in form.xx"
                :key="item"
                :label="item"
                :value="item"
              >
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="录入人" size="small">
            <el-select v-model="value" placeholder="请选择">
              <el-option
                v-for="item in form.xx"
                :key="item"
                :label="item"
                :value="item"
              >
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <!-- 第三行 -->
        <el-col :span="6">
          <el-form-item label="题目备注" size="small">
            <el-input v-model="form.jj" placeholder="请输入内容"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="企业简称" size="small">
            <el-input v-model="form.jj" placeholder="请输入内容"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="城市" size="small">
            <!-- <citys :value="'北京市'"></citys> -->
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item size="small" class="btn-search">
            <div class="btn">
              <el-button>取消</el-button>
              <el-button type="primary">搜索</el-button>
            </div>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>

<script>
import citys from "../citys.vue";
export default {
  components: { citys },
  data() {
    return {
      form: {
        subject: ["大数据"],
        city: ["北京"],
        xx: [],
        jj: "",
      },
      value: "",
      value1: [],
      value2: [],
    };
  },
};
</script>

<style scoped lang="scss">
.el-select.el-select--small {
  width: 100%;
}
.city {
  display: flex;
}
.btn-search {
  display: flex;
  justify-content: flex-end
}
</style>